package com.huawei.appmarket.service.export.check;

import android.content.Context;
import o.dye;
import o.erx;
import o.erx.c;

public class RootInterrupter extends dye implements erx {
    private c listener;

    public RootInterrupter(Context context) {
        super(context);
    }

    public void setListener(c cVar) {
        this.listener = cVar;
    }

    public void doInterruption() {
        doCheck();
    }

    public boolean needInterruption() {
        return true;
    }

    public void checkSuccess() {
        if (this.listener != null) {
            this.listener.ॱ(true);
        }
    }

    public void checkFailed() {
        if (this.listener != null) {
            this.listener.ॱ(false);
        }
    }
}
